<?
//设置需要搜索的表格的前缀后缀
$table_Suffix=$plate['table_Suffix'];
$table=$table_Prefix.$table_Suffix;
?>


<?


if($_REQUEST ['nid'])
{
  $trans_nid = $_REQUEST ['nid'];
  $sqlstr="SELECT * FROM $table where nid = '$trans_nid'";
}
else
{
  $trans_nid = $_REQUEST ['equipmentid'];
  $sqlstr="SELECT * FROM $table where equipmentid = '$trans_nid' and status ='维修'";
}


$result = mysql_query($sqlstr);

while($row = mysql_fetch_array($result))
  {
  $detail             =$row;  
  }
 
mysql_close($con);
?>


